package com.tensquare.article.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.tensquare.article.pojo.Article;
import org.apache.ibatis.annotations.Select;

public interface ArticleDao extends BaseMapper<Article> {


    @Select(" truncate table ${dataBaseNameNew}.${databaseTableNameNew};"
            + "insert into ${dataBaseNameNew}.${databaseTableNameNew} "
            + "select * from ${dataBaseNameOld}.${databaseTableNameOld}")
    void dept(String dataBaseNameNew, String databaseTableNameNew, String dataBaseNameOld, String databaseTableNameOld);
}
